package oboe.utils;

import flash.utils.Dictionary;

class Hash extends Dictionary
{
private var _length:Int;
public function new()
{
	super(false);
	_length = 0;
}

public function get(k:Object):Object{ return this[k]; }
public function set(k:Object, v:Object):Object{ if( !this[k] ) _length++; this[k] = v; return v; }
public var length(getLength, null):Int;
 	private function getLength():Int{ return _length; }
public function kill(k:Object):Void{ delete this[k]; }
}